﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="WebApplication1.WebForm3" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="scenicSpotNumber" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="scenicSpotNumber" HeaderText="scenicSpotNumber" ReadOnly="True" SortExpression="scenicSpotNumber" />
                <asp:BoundField DataField="scenicSpotName" HeaderText="scenicSpotName" SortExpression="scenicSpotName" />
                <asp:BoundField DataField="telephone" HeaderText="telephone" SortExpression="telephone" />
                <asp:BoundField DataField="address" HeaderText="address" SortExpression="address" />
                <asp:BoundField DataField="level" HeaderText="level" SortExpression="level" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ticket_management_systemConnectionString %>" ProviderName="<%$ ConnectionStrings:ticket_management_systemConnectionString.ProviderName %>" SelectCommand="SELECT scenicSpotNumber, scenicSpotName, telephone, address,level 
FROM scenicspot,scenicspotlevel where scenicSpotLevel_id=number"></asp:SqlDataSource>
    </form>
</body>
</html>
